/*
 * Copyright (c) 2023, 2024,yzc.cn All rights reserved.
 *
 */
package cn.yzc.factory_pattern.simple;

/**
 * <p>Project: springbootDemo - CoffeeStore</p>
 * <p>Powered by yzc On 2024-03-20 09:58:22</p>
 * <p>描述：<p>
 *
 * @author yzc [youzhicheng0415@163.com]
 * @version 1.0
 * @since 17
 */
//咖啡店
public class CoffeeStore {
    public Coffee orderCoffee(String type){

        SimpleCoffeeFactory factory = new SimpleCoffeeFactory();
        Coffee coffee = factory.orderCoffee(type);
        coffee.getMilk();
        coffee.getSugar();
        return coffee;
    }
}
